/**
 * 
 */
package org.vsg.stock.basic.persistence.mybatis;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.dao.DataAccessException;
import org.vsg.stock.basic.domain.VolCharacterKlineDaily;
import org.vsg.stock.basic.domain.VolFigureKlineDaily;
import org.vsg.stock.basic.persistence.VolCharacterKlineDailyDao;

/**
 * @author Bill Vison
 *
 */
public class VolCharacterKlineDailyDaoImpl extends SqlSessionDaoSupport implements VolCharacterKlineDailyDao {

	@Override
	public List<VolCharacterKlineDaily> findVolCharacKlineDailyInCycleByStck(
			String stockCode, Date startDate,
			Date endDate) throws DataAccessException {
		// TODO Auto-generated method stub
		String statement = "org.vsg.stock.basic.domain.mybatis.VolCharacterKlineDailyProxy." +
		"findVolCharacKlineDailyInCycleByStck";

		Map<String,Serializable> params = new HashMap<String, Serializable>();
		params.put("stockCode", stockCode);
		params.put("stockStartDate", startDate );
		params.put("stockDateEnd", endDate );

		List result  = this.getSqlSessionTemplate().selectList(statement, params);

		return (List<VolCharacterKlineDaily>) result;
	}

	@Override
	public List<VolCharacterKlineDaily> findVolCharacKlineDailyByPattern(
			String stockCode, String pattern) throws DataAccessException {
		// TODO Auto-generated method stub
		return null;
	}
	


	
	

	
	
}
